package com.example.demo.design_pattern.template;

/**
 * @author xkx
 * @description 实现travel模板:shanghai surrounding
 */
public class TravelToShanghaiTemplateImpl extends AbstractTravelTemplate {

  @Override
  protected void setNeedPrepare(boolean needPrepare) {
    this.needPrepare = needPrepare;
  }


  @Override
  public void preparation() {
    System.out.println("check shanghai weather");
    System.out.println("plan riding route");
  }

  @Override
  public void doing() {
    System.out.println("崇明岛 骑行");
  }

  @Override
  public void backHome() {
    System.out.println("subway to home");
  }
}
